﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace CSKLiteWindowsPhone.UserContorl
{
    public partial class CategoryReportControl : UserControl
    {
        public string Title { get; set; }
        public List<CircleTile> CircleTiles = new List<CircleTile>();
        public CategoryReportControl()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(CategoryReportControl_Loaded);
        }

        void CategoryReportControl_Loaded(object sender, RoutedEventArgs e)
        {
            this.txtTitle.Text = this.Title;
            foreach (var item in this.CircleTiles)
            {
                if (!this.LayoutRootx.Children.Contains(item))
                {
                    this.LayoutRootx.Children.Add(item);
                }
            }
        }
    }
}
